﻿$.MGJ.PreventFlee = [];

(function () {
    var _this = $.MGJ.PreventFlee;
    $.extend($.MGJ.PreventFlee, {

        // 显示详细数据
        Dialog_ShowDataObj: null,
        Dialog_ShowData: function (obj) {
            var id = $(obj).attr("ID");
            this.Dialog_OutShowDataObj = $.L.dialog({
                url: ACTION_URL("lnventoryShowData", "FleeGoods") + "?id=" + id,
                title: "详细数据",
                width: 1100,
                height: 'auto',
                buttons: {
                    "button_cancel": {
                        type: 'primary',
                        text: '返回',
                        click: 'MODALMISS'
                    }
                },
            });
        },
    });
})(jQuery);
(function () {
    var _this = $.MGJ.PreventFlee;
    $.extend($.MGJ.PreventFlee, {
        //查询信息
        Ajax_GetInfo: function (pageIndex) {
            window.SearchKey = removeSpace($("#Ssearch").val());
            $.L.ajaxHandle({
                url: ACTION_URL("GetFleeGoodsData", "FleeGoods"),
                data: {
                    SearchKey: window.SearchKey,
                    pageIndex: pageIndex,
                    pageSize: 10
                },
                success: function (response) {
                    $("#tableList").L_bindingDataList(response);
                }
            });
        },
    });
})(jQuery);